<template>
    <div id="OrdersTitle">
        <v-details :inputConfig="inputConfig" :detailData="inputData" :rules="rules" ref="input"></v-details>
    </div>
</template>

<script>
    import details from 'commons/Detail'
    import baseMixin from "@/mixins/BaseMixin";

    export default {
        props: {
            inputData: {
                type: Object,
            }
        },
        mixins: [baseMixin],
        name: "",
        data() {
            return {
                rules: {
                    rtx_consumableprintkey: [
                        {required: true, trigger: 'blur'},
                    ],
                    qty: [
                        {required: true, trigger: 'blur'},
                    ],
                    scandevicenum: [
                        {required: true, trigger: 'blur'},
                    ],
                    orderkey: [
                        {required: true, trigger: 'blur'},
                    ]
                },
            }
        },
        computed: {
            inputConfig() {
                return [
                    [
                        {
                            type: "input",
                            label: this.$t('manage.rtx_consumableprintkey'),
                            props: "rtx_consumableprintkey",
                            disabled: true
                        },
                        {
                            type: "input",
                            label: this.$t('manage.rtx_consumablereceivekey'),
                            props: "rtx_consumablereceivekey",
                            disabled: true
                        }
                    ],
                    [
                        {
                            type: "input",
                            label: this.$t('manage.printqty'),
                            props: "qty",
                            disabled: true
                        },
                        {
                            type: "select",
                            label: this.$t('common.type'),
                            props: "rtx_type",
                            options: [
                                {code: '1', description: this.$t('code.rtx_type1')},
                                {code: '0', description: this.$t('code.rtx_type2')}
                            ],
                            disabled: true
                        },
                    ],
                    [
                        {
                            type: "input",
                            label: this.$t('manage.scandevicenum'),
                            props: "scandevicenum",
                            disabled: true
                        },
                        {
                            type: "date",
                            label: this.$t('manage.printdate'),
                            props: "printdate",
                            disabled: true
                        }
                    ],
                    [
                        {
                            type: "input",
                            label: this.$t('out.orderkey'),
                            props: "orderkey",
                        }
                    ]
                ]
            },
        },
        methods: {},
        mounted() {
        },
        watch: {},
        components: {
            'v-details': details
        }
    }
</script>

<style scoped>

</style>
